package com.leoman.work.service;

import com.leoman.common.service.GenericManager;
import com.leoman.work.entity.WorkNovel;
import com.leoman.work.entity.WorkVideo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/6/21 0021.
 *
 */
public interface WorkNovelService extends GenericManager<WorkNovel>{

    // 根据作品id查询对应的小说章数
    List<WorkNovel> findByWorkId(Long workId);

    // 小说章数列表（分页）
    Page<WorkNovel> page(Long workId, Integer pageNum, Integer pageSize);

    // 删除小说章节
    Integer deleteNovel(Long novelId);

    WorkNovel findOneById(Long id);
}
